<include file="Home@Public/head"/>
<style>
.material_list{margin: 0;}
.appmsg_item .main_img {margin: 0;}
</style>
<body style="background: #fff;">
<empty name="list_data">
<div class="empty_container"><p>您的图文素材库为空，<a target="_blank" href="{:U('Home/Material/material_lists')}">请先增加素材</a></p></div>
<else /><div class="data_container"><ul class="material_list">
      <volist name="list_data" id="vo">
      <if condition="$vo['count']==1"><li class="appmsg_li" data-id="{$vo.id}" data-group_id="{$vo.group_id}" style="overflow:hidden">
            <div class="appmsg_item">
                <h6 class="ellipsis"">{$vo.title}</h6>
                <div class="main_img">
                    <img src="{$vo.cover_id|get_cover_url}"/>
                </div>
                <p class="desc">{$vo.intro}</p>
            </div>
            <div class="hover_area"></div>
        </li><else /><li class="appmsg_li" data-id="{$vo.id}" data-group_id="{$vo.group_id}" style="overflow:hidden">
            <div class="appmsg_item">
                <div class="main_img">
                    <img src="{$vo.cover_id|get_cover_url}"/>
                    <h6>{$vo.title}</h6>
                </div>
                <p class="desc">{$vo.intro}</p>
            </div>
            <volist name="vo.child" id="vv">
            <div class="appmsg_sub_item">
                <p class="title">{$vv.title}</p>
                <div class="main_img">
                    <img src="{$vv.cover_id|get_cover_url}"/>
                </div>
            </div>
            </volist>
            <div class="hover_area"></div>
        </li></if></volist></ul>
   </div>
</empty>
<div class="page"> {$_page|default=''} </div></div>
<script type="text/javascript">
$(function(){
	$('.material_list').masonry({
		// options
		itemSelector : '.appmsg_li'
		//columnWidth : 308
	  });
});

</script>
</body>